package cn.dkk.behavior_design.visitor;

/**
 * @author dkk
 * @date 2022/7/31
 * @desc 访问者实现类
 */
public class Owner implements Person{
    @Override
    public void feed(Cat cat) {
        System.out.println("主人喂食猫");
    }

    @Override
    public void feed(Dog cat) {
        System.out.println("主人喂食狗");
    }
}
